﻿@model EpiInfoCloudMagpiBridge.MagpiAccountSetting

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Create</title>
</head>
<body>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            <h3>Add Magpi Credentials</h3>
            <hr />
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            @*<div class="form-group">
                    @Html.LabelFor(model => model.EWAVUserID, htmlAttributes: new { @class = "control-label col-md-2 unbold" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.EWAVUserID)
                        @Html.ValidationMessageFor(model => model.EWAVUserID, "", new { @class = "text-danger" })
                    </div>
                </div>*@

            <div class="form-group">
                @Html.LabelFor(model => model.MagpiUsername, htmlAttributes: new { @class = "control-label col-md-2 unbold" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.MagpiUsername, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.MagpiUsername, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.MagpiAccessToken, htmlAttributes: new { @class = "control-label col-md-2 unbold" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.MagpiAccessToken, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.MagpiAccessToken, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-offset-0 col-md-10">
                    <button type="submit" class="btn btn-primary">Create</button>
                </div>
            </div>
        </div>
    }

    <div>
        <br />
        <br />
        <br />
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
